#! /usr/bin/env python
#coding=utf-8
#-- coding: utf-8 -*-
import tgame_room_logic, t_cmd

def init():
	#网络消息到具体回调函数的映射表
	global MSG_MAP
	MSG_MAP	= {
		#游戏模式信息
		"game_s_game_mode" : tgame_room_logic.inst.s_game_mode, \
		#玩家进入
		"game_s_user_in_game" : tgame_room_logic.inst.s_user_in_game, \
		#玩家退出
		"game_s_user_out_game" : tgame_room_logic.inst.s_user_out_game, \
		#选择关卡（服务端）
		"game_s_select_stage" : tgame_room_logic.inst.s_select_stage, \
		#准备/取消准备
		"game_s_game_ready" : tgame_room_logic.inst.s_game_ready, \
		#倒数/取消倒数
		"game_s_countdown" : tgame_room_logic.inst.s_countdown, \
		#房间新座位
		"game_s_game_side" : tgame_room_logic.inst.s_game_side, \
		#换房主
		"game_s_game_master":tgame_room_logic.inst.s_game_master,\

		#游戏准备
		"game_s_game_init" : tgame_room_logic.inst.s_game_init, \
		#游戏开始
		"game_s_game_start" : tgame_room_logic.inst.s_game_start, \
		#游戏具体事件（服务端）
		"game_s_game_event" : tgame_room_logic.inst.s_game_event, \
		#游戏结束和本局游戏结果
		"game_s_game_end" : tgame_room_logic.inst.s_game_end, \
		#玩家具体信息
		"game_s_player_detail_info" : tgame_room_logic.inst.s_player_detail_info, \
		#玩家隐私信息，由于只会收到自己的，所以没有side信息
		"game_s_player_secret_info" : tgame_room_logic.inst.s_player_secret_info, \
		#玩家完成的成就id
		"game_s_player_finish_achieve" :  tgame_room_logic.inst.s_player_finish_achieve, \
	}
